#!/bin/bash

#Script  used to create some common general shell command alias
# and some standard file path enter alias

__base_alias_config(){

    alias ll='ls -alF'
    alias la='ls -A'
    alias l='ls -CF'
    alias llh="ls -lh"


    alias gvim='vim -g'


    #alias tmuxat='tmux attach-session -t'
    alias tmuxns='tmux -2 new -s '
    #alias tmuxls='tmux list-session'
    #alias tmuxrns='tmux rename-session -t'
    #alias tmuxss='tmux choose-session -t'
    #alias tmuxks='tmux kill-session -t'

    alias fs='fc -s'
    alias updatesys="sudo apt-get update;sudo apt-get upgrage;"

    alias gitaa='git add -A'
    alias gitadd='git add'
    alias gitbranch='git branch '
    alias gitcheckout='git checkout '
    alias gitcommit='git commit -m'
    alias gitps='git push origin master'
    alias gitplo='git pull origin master'
    alias gitfo='git fetch origin'
    alias gitups="git add -A; git commit -m 'updated'; git push origin master;"
    alias gitupl="git fetch origin ; git pull origin master ; "

}


__common_path_config(){

    alias cddwn="cd $HOME/Downloads"
    alias cddoc="cd $HOME/Documents"
    alias cddes="cd $HOME/Desktop"
    alias cdvid="cd $HOME/Videos"
    alias cdmus="cd $HOME/Music"
    alias cdpic="cd $HOME/Pictures"

    export   cddwn
    export   cddoc
    export   cddes
    export   cdvid
    export   cdmus
    export   cdpic

}

#config customized path
__env_path_config(){

    if [[ -z "${SYSTEM_GIT_HOME}" ]]; then
        SYSTEM_GIT_HOME="$HOME/gitworkspace"
    fi

    PATH="$PATH:$SYSTEM_GIT_HOME/.dotfiles/bin"
}

__base_alias_config
__common_path_config
__env_path_config






